<extend name="Public/base" />

<block name="style" >
    <style>
        .user_table{
            border: 1px solid #ddd;
            width: 180px;
        }
        .user_table tr{
            border: 1px solid #dddddd;
            height: 30px;
        }
        .user_table td{
            border: 1px solid #dddddd;
            width: 90px;
            text-align: center;
        }
    </style>
</block>

<block name="body">
    <!-- 弹窗插件 -->
    <include file="Public:artdialog" />
    <!-- 表单验证插件 -->
    <include file="Public:validform" />

    <form action="{:U('addPurchase')}" method="post" role="form" class="form-horizontal row-border vform" >

        <input type="hidden" name="id" value="{$entity['id']}">
        <input type="hidden" name="is_add" value="{$is_add}">

        <div class="row">
            <div class="col-md-12">
                <div class="block-web">
                    <div class="header">
                        <h3 class="content-header">添加采购单</h3>
                    </div>
                    <div class="porlets-content">

                         <div class="form-group">
                            <label class="col-sm-3 control-label"><font class="red">*</font>采购单标题名</label>
                            <div class="col-sm-3">
                                <input type="text" value="" name="username"  class="form-control " datatype="*" nullmsg="请输入采购单名" />
                                <div class="Validform_checktip"></div>
                            </div>
                        </div>

           <div class="form-group">
                            <label class="col-sm-3 control-label"><font class="red">*</font>采购单结束时间</label>
                            <div class="col-sm-3">
                                        <input name="end_time" readonly="readonly" class="laydate-icon" style="width: 160px;padding: 0px;height: 20px;" type="text" id="end_time" size="15">
                            </div>
                        </div>
                      <div class="form-group">
                            <label class="col-sm-3 control-label">备注</label>
                            <div class="col-sm-6" id="activity_rule">
                                <textarea  class="form-control" style="height:80px;" name="remark"></textarea>
                            </div>
                        </div>

<!--                         <div class="form-group" >
                            <label class="col-sm-3 control-label"><font class="red">*</font>是否有效</label>
                            <div class="col-sm-6">
                                <label class="radio-inline">
                                    <input type="radio"  name="in_or_out" value="1" checked="checked">
                                    <span class="custom-radio"></span> 有效
                                </label>
                                <label class="radio-inline">
                                    <input type="radio"    name="in_or_out" value="0" >
                                    <span class="custom-radio"></span> 无效
                                </label>
                            </div>
                        </div> -->




                        <div class="form-group">
                            <label class="col-sm-3 control-label"></label>
                            <button class="btn btn-primary btn-success bt_submit" type="submit" id="submit">提交</button>
                        </div>
                    </div><!--/porlets-content-->
                </div><!--/block-web-->
            </div>

        </div>

    </form>




</block>
<block name="script">
<script type="text/javascript" src="/plugins/laydate/laydate.dev.js"></script>
    <script>
    laydate({
        elem: '#end_time',
        festival: true, //显示节日
        istime: true,
        format: 'YYYY-MM-DD hh:mm:ss'
    })
/*
        function searchUser(obj) {

            var $username = $(obj).val();

            $.ajax({
                'url': "/indexadmin.php/Payment/search_user",
                'data': {username:$username},
                'dataType': 'json',
                'type': 'POST',
                success: function (data) {
                    if (data.status == 1) {
                        $('#user_info').show();
                        $("#nickname").html(data.a);
                        $("#mobile_phone").html(data.b);
                        $("#user_money").html(data.c);

                        $("#mobile").val(data.b);
                        $("#user_id").val(data.e);

                    }

                }, error: function () {
                    

                }, complete: function () {

                }
            });


        }*/



    </script>

</block>
